//增加商品图片
function addImageInput(){
	var str = '<tr><td>\
			<input type="file" name="image[]" class="w200"/>\
			<button type="button" class="hd-cancel" onclick="delImageInput(this)">删除</button>\
			</td>\
			</tr>';
	$('#goodsImages').append(str);
}
//删除增加的商品图片
 function delImageInput(obj){
 	$(obj).parents('tr').eq(0).remove();
 }

function getAttrForm(obj){
	var cid = $(obj).val();
	$.post(
		CONTROLLER+'/getAttrForm',
		{'cid':cid},
		function(data){
			$('#goodsAttr').html(data);
		}
	);
}
